<%@ page contentType="text/html;charset=UTF-8" %>
<%@ page import="net.sf.ehcache.Element,net.sf.ehcache.CacheManager,net.sf.ehcache.Cache" %>
<%@page import="com.cn.stat.hibernate.stat.pojo.Generaladdetail"%>
<%
	String ip = request.getRemoteAddr();
	if (!ip.startsWith("220.181.23.")) {
		out.print("forbid");
	} else {
		String cacheName = "GeneralAdDetail_OR";
		String key = request.getParameter("key");

		Cache cache = CacheManager.getInstance().getCache(cacheName);

		Element e = null;
		e = cache.get(key);
		if (e == null) {
			out.print("null");
		}else{
			Generaladdetail gd = (Generaladdetail) e.getValue();
			out.print(gd.getClickcount());
		}
	}
%>    
        